//index.js
//获取应用实例
var app = getApp();
var cardTeams;

Page({
  data: {

  },


  //事件处理函数
  bindViewTap: function (e) {
    console.log(e)
    wx.navigateTo({
      url: './weixinlink?id=' + e.currentTarget.dataset.id,
    })
  },
  onLoad: function () {
    const db = wx.cloud.database()
    db.collection('pages').orderBy('list', 'asc').get({
      success: res => {
        console.log(res)
        this.setData({
          ski: res.data
        })
      }
    })

  }


})